package com.nervenets.web.controller.handler.common;

import com.nervenets.web.annotation.NeedValidation;
import com.nervenets.web.controller.handler.ApiParams;
import com.nervenets.web.validation.Type;

/**
 * Created by Joe on 2018/1/20.
 */
public class PagingParams extends ApiParams {
    @NeedValidation(type = Type.NUMBER)
    private int start;
    @NeedValidation(type = Type.POSITIVENUMBER)
    private int limit;

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }
}
